<div class="page-title clearfix">
  <div class="title">平台账户管理</div>
  <button nz-button class="fr btn-green" [routerLink]="routerLinks.platformAccount.add" title="添加"><i
    class="anticon anticon-plus"></i>
    添加
  </button>
</div>

<div class="panel">
  <nz-table #nzTable
            [nzData]="platformAccountList.voList"
            [nzLoading]="_loading"
            [nzFrontPagination]="false"
            [nzShowTotal]="totalRow"
            [nzPageSize]="platformAccountList.pageSize"
            [nzTotal]="platformAccountList.totalRow"
            [nzPageIndex]="platformAccountList.curPage"
            (nzPageIndexChange)="queryPlatformAccountList($event)">
    <thead nz-thead>
    <ng-template #totalRow>共 {{platformAccountList.totalRow}} 条数据</ng-template>
    <tr>
      <th nz-th class="text-center" nzWidth="5%"><span>序号</span></th><!--序号-->
      <th nz-th class="text-center" nzWidth="20%"><span> 账户</span></th><!--账户-->
      <th nz-th class="text-center" nzWidth="20%"><span>是否是超级账户</span></th><!--是否是超级账户 Y,N-->
      <th nz-th class="text-center" nzWidth="20%"><span>状态</span></th><!--状态:激活 Active，冻结 Frozen，删除 Delete-->
      <th nz-th class="text-center" nzWidth="20%"><span> 创建时间</span></th><!--创建时间-->
      <th nz-th class="text-center" nzWidth="15%"><span>操作</span></th><!--操作-->
    </tr>
    </thead>
    <tbody nz-tbody>
    <ng-template ngFor let-data [ngForOf]="nzTable.data" let-i="index">
      <tr nz-tbody-tr>
        <td nz-td class="text-center">{{i+1}}</td>
        <td nz-td class="text-center">{{data.account}}</td>
        <td nz-td class="text-center">{{data.isSuper | enumName:isSupper}}</td>
        <td nz-td class="text-center">{{data.state | enumName:states}}</td>
        <td nz-td class="text-center">{{data.createTime | date: 'yyyy-MM-dd HH:mm:ss'}}</td>
        <td nz-td class="text-center">
          <button nz-button class="btn-blue-o mr" [routerLink]="[routerLinks.platformAccount.modify,data.code]"
                  title="修改">
            <i class="anticon anticon-edit"></i></button>
        </td>
      </tr>
    </ng-template>
    </tbody>
  </nz-table>
</div>
